import http from 'utils/http'

export function getThemeInfoById(id) {
  return http
    .get(`theme/info/${id}`, null, { maxAge: 60 * 60, cacheable: false })
    .then(res => res)
}

export function getThemeInfoBody({ tid, page = 1, perPage = 3 }) {
  return http
    .get('theme/bodyWithDiscount', { tid, page, perPage }, { maxAge: 60 * 60, cacheable: false })
    .then(res => res)
}
